package edu.pitt.cs.cs2510.project3.model.replication;
/*
 * File: DeleteReplication.java
 * Authors: Jesse Szwedko, Callen Shaw, Heather Friedberg
 * CS2510 Project 3
 */
public class DeleteReplication extends Replication {
	public String server;

	public DeleteReplication(String filename, int time, String server) {
		super(filename, time);
		this.server = server;
	}
	
	public String toString(boolean outputMode)
	{
		if (!outputMode)
		{
			return this.toString();
		}
		
		return "DELETE, " + this.filename + ", " + this.server + ", " + this.time;
	}

	@Override
	public String toString() {
		return "Delete [server=" + server + ", filename=" + this.filename
		+ ", time=" + this.time + "]";
	}	
}